package com.hyl.springbootappinfo.service.impl;

import com.hyl.springbootappinfo.dao.App_versionMapper;
import com.hyl.springbootappinfo.pojo.App_version;
import com.hyl.springbootappinfo.service.App_versionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class App_versionServiceImpl implements App_versionService {
    @Resource
    private App_versionMapper app_versionMapper;

    @Override
    public List<App_version> versionlist(Integer appId) {
        return app_versionMapper.versionlist(appId);
    }

    @Override
    public int versionadd(App_version app_version) {
        return app_versionMapper.versionadd(app_version);
    }

    @Override
    public App_version findByAppid(Integer appId) {
        return app_versionMapper.findByAppid(appId);
    }

    @Override
    public App_version findByAppidAndVersionId(Integer id, Integer appId) {
        return app_versionMapper.findByAppidAndVersionId(id,appId);
    }

    @Override
    public int deleapkName(Integer id) {
        return app_versionMapper.deleapkName(id);
    }

    @Override
    public int versionmodify(App_version app_version) {
        return app_versionMapper.versionmodify(app_version);
    }

    @Override
    public int delversion(Integer appId) {
        return app_versionMapper.delversion(appId);
    }
}
